Behavioral Reasoning in Generalized Hidden Logics

نویسنده

  • Manuel A. Martins
چکیده

Equational logic serves as the underlying logic in many formal approaches to program specification. The algebraic data types specified in this formal way can be viewed as abstract machines on which the programs are to be run. This is one way of giving a precise algebraic semantics for programs, against which the correctness of a program can be tested. Object oriented (OO) programs, however, present a special challenge for equational methods. This is due to properties inherent to the OO programs. A more appropriate model for the abstract machine in the case of an OO program is, arguably, a state transition system: like a state of such a system, a state of an OO program can be viewed as encapsulating all pertinent information about the abstract machine when it reaches the state during execution of the program. As a way of meeting the afore mentioned challenge the standard equality predicate can be augmented by behavioral equivalence; in this way many of the characteristic properties of state transition systems can be grafted onto equational logic. In our approach we use hidden k-logics as the underlying logic of program specification. They are a natural generalization of a k-deductive systems. They encompass deductive systems as well as hidden equational logics and inequational logics. Hidden k-logics are used to specify systems whose data may be heterogeneous, i.e., data are split in different kinds, usually called sorts. Moreover, in hidden k-logics we are also able to distinguish internal data (hidden data) and the real data (visible data). This advantage is central in the specification of OO systems. For some programs it is worth considering those kinds of encapsulated data representation either for security reasons or to simplify the process of updating and improving program implementations.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Behavioural reasoning for conditional equations

The behavioral equivalence of hidden terms in an equational specification logic is not itself specifiable in general (Buss and Roşu 2000). But much recent work has been done on its partial specification, in particular using coinduction. In this paper we consider the more general notion of conditional behavioral equivalence introduced by Reichel in 1984. We investigate the behavioral proof theor...

متن کامل

Behavioral Institutions and Refinements in Generalized Hidden Logics

We investigate behavioral institutions and refinements in the context of the object oriented paradigm. The novelty of our approach is the application of generalized abstract algebraic logic theory of hidden heterogeneous deductive systems (called hid-algebraic logic theory of hidden heterogeneous deductive systems (called hidden k-logics) to the algebraic specification of object oriented progra...

متن کامل

Behavioral Extensions of Institutions

We show that any institution I satisfying some reasonable conditions can be transformed into another institution, Ibeh, which captures formally and abstractly the intuitions of adding support for behavioral equivalence and reasoning to an existing, particular algebraic framework. We call our transformation an “extension” because Ibeh has the same sentences as I and because its entailment relati...

متن کامل

Incompleteness of Behavioral Logics - 7

Incompleteness results for various behavioral logics are investigated. We show that hidden algebra, observational logic, coherent hidden algebra and other current generalizations of hidden algebra do not admit complete deduction systems for equational behavioral satisfaction. The technique used is reduction from a non-recursively enumerable problem to behavioral validity. In fact we show a stro...

متن کامل

Deduction-detachment theorem in hidden k-logics

Modern software systems usually deal with several sorts (types) of data elements simultaneously. Some of these sorts, like integers, booleans, and so on, can be seen as having an immediate, direct nature and therefore are called visible, and they are contrasted with the others, like types of objects (in OO sense), which are called hidden sorts. A language used to specify such software system ha...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004